conditionalstatement in widget flutter

48

Container(
  color: Colors.white,
  child: ('condition')
  ? Widget1(...)
  : Widget2(...)
)
condition? Text("True"): null,

Comments

Submit
0 Comments